package cn.edu.xmu.oomall.share.microservice;

import cn.edu.xmu.oomall.share.microservice.vo.ShareActivityVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author HertzLiu
 * @create_time 2021/12/18 13:32
 * @package_name cn.edu.xmu.oomall.liquidation.microservice
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description
 * @modifiedBy XJX
 * @date 2021-12-22 04:03:27
 * 删除获取onsale的方法，此方法在goods模块中已存在
 */

@FeignClient("activity-service")
public interface ActivityService {

    /**
     * 根据id获取分享活动
     *
     * @param id
     * @return
     */
    @GetMapping("/internal/shareactivities/{id}")
    InternalReturnObject<ShareActivityVo> getShareActivityById(@PathVariable("id") Long id);
}
